<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>{/$head_title/}</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <!-- stylesheets -->
    <link rel="stylesheet" type="text/css" href="{/$root_dir/}/assets/{/$theme_name/}/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="{/$root_dir/}/assets/{/$theme_name/}/css/style.css" media="screen" />
    <link id="color" rel="stylesheet" type="text/css" href="{/$root_dir/}/assets/{/$theme_name/}/css/colors/blue.css" />



    <link rel="stylesheet" href="/assets/simpla/css/invalid.css" type="text/css" />
    <script type="text/javascript" src="/assets/js/jquery.js"></script>
    <script type="text/javascript" src="/assets/simpla/scripts/simpla.jquery.configuration.js"></script>
    <script type="text/javascript" src="/assets/simpla/scripts/facebox.js"></script>
    <script type="text/javascript" src="/assets/simpla/scripts/jquery.wysiwyg.js"></script>
    <script type="text/javascript" src="/assets/WdatePicker/WdatePicker.js"></script>

    <!-- scripts (jquery) -->
    <script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
    <!--[if IE]><script language="javascript" type="text/javascript" src="{/$root_dir/}/assets/{/$theme_name/}/scripts/excanvas.min.js"></script><![endif]-->
    <script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
    <script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/jquery.ui.selectmenu.js" type="text/javascript"></script>
    <script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/jquery.flot.min.js" type="text/javascript"></script>


    <script type="text/javascript">
        $(document).ready(function () {
            style_path = "{/$root_dir/}/assets/{/$theme_name/}/css/colors";
            $("#date-picker").datepicker();
            $("#box-tabs, #box-left-tabs").tabs();
        });
    </script>



</head>
<body>

<div id="colors-switcher" class="color">
    <a href="" class="blue" title="Blue"></a>
    <a href="" class="green" title="Green"></a>
    <a href="" class="brown" title="Brown"></a>
    <a href="" class="purple" title="Purple"></a>
    <a href="" class="red" title="Red"></a>
    <a href="" class="greyblue" title="GreyBlue"></a>
</div>
<!-- header -->
<div id="header">
    <!-- logo -->
    <div id="logo">
        <h1><a href="" title="Smooth Admin"><img src="{/$root_dir/}/assets/{/$theme_name/}/images/logo.png" alt="{/$head_title/}" /></a></h1>
    </div>
    <!-- end logo -->
    <!-- user -->
    <ul id="user">
        <li class="first"><a href="">{/$_adminname/}</a></li>
        <li><a href="{/get_url rule="/main/logout"/}"  title="退出系统">退出系统</a></li>
    </ul>
    <!-- end user -->
    <div id="header-inner">
        <div id="home">
            <a href="{/get_url rule="/system/index"/}"" title="Home"></a>
        </div>
        <!-- quick -->
        <ul id="quick">
            {/if $menu.category/}
            <li>
                <a href="#" title="Products"><span class="normal">分类管理</span></a>
                <ul>
                    {/foreach from=$menu.category item=items key=k/}
                    <li><a href="{/get_url rule='/category/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                    {//foreach/}
                </ul>
            </li>
            {//if/}

            {/if $menu.goods/}
            <li>
                <a href="#" title="Products">
                        <span class="icon">
                        <img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/application_double.png" alt="Products" /></span>
                    <span>商品管理</span></a>
                <ul>
                    {/foreach from=$menu.goods item=items key=k/}
                    <li><a href="{/get_url rule='/goods/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                    {//foreach/}
                </ul>
            </li>
            {//if/}


            {/if $menu.purchase/}
            <li>
                <a href="" title="Events">
                        <span class="icon">
                            <img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/calendar.png" alt="Events" /></span>
                    <span>进货管理</span>
                </a>
                <ul>
                    {/foreach from=$menu.purchase item=items key=k/}
                    <li><a href="{/get_url rule='/purchase/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                    {//foreach/}
                </ul>
            </li>
            {//if/}

            {/if $menu.sales/}
            <li>
                <a href="" title="Pages">
                        <span class="icon">
                        <img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/page_white_copy.png" alt="Pages" /></span>
                    <span>出货管理</span></a>
                <ul>
                    {/foreach from=$menu.sales item=items key=k/}
                    <li><a href="{/get_url rule='/sales/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                    {//foreach/}
                </ul>
            </li>
            {//if/}

            {/if $menu.statistics/}
            <li>
                <a href="" title="Links"><span class="icon">
                        <img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/world_link.png" alt="Links" /></span>
                    <span>统计管理</span></a>
                <ul>
                    {/foreach from=$menu.statistics item=items key=k/}
                    <li><a href="{/get_url rule='/statistics/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                    {//foreach/}
                </ul>
            </li>
            {//if/}

            {/if $menu.account/}
            <li>
                <a href="" title="Settings">
                    <span class="icon"><img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/cog.png" alt="Settings" /></span>
                    <span>帐号管理</span></a>
                <ul>
                    {/foreach from=$menu.account item=items key=k/}
                    <li><a href="{/get_url rule='/account/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                    {//foreach/}
                </ul>
            </li>

            {//if/}
            {/if $menu.member/}
            <li>
                <a href="" title="Settings">
                    <span class="icon"><img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/cog.png" alt="Settings" /></span>
                    <span>会员管理</span></a>
                <ul>
                    {/foreach from=$menu.member item=items key=k/}
                    <li><a href="{/get_url rule='/member/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                    {//foreach/}
                </ul>
            </li>
            {//if/}

            {/if $menu.system/}
            <li>
                <a href="" title="Settings">
                    <span class="icon"><img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/cog.png" alt="Settings" /></span>
                    <span>系统</span></a>
                <ul>
                    {/foreach from=$menu.system item=items key=k/}
                    <li><a href="{/get_url rule='/system/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                    {//foreach/}
                </ul>
            </li>
            {//if/}


        </ul>
        <!-- end quick -->
        <div class="corner tl"></div>
        <div class="corner tr"></div>
    </div>
</div>
<!-- end header -->


<div id="content">
    {/include file="smooth/common/left.html"/}
    <div id="right"><div class="box">
  <h2>欢迎您 {/$_adminname/}</h2>
  <p id="page-intro">数据统计。本统计使用的插件：<a href="http://www.jqplot.com" target="_blank">jqPlot</a></p>
  <div class="clear"></div>
  <div class="content-box">
    <div class="content-box-header">
      <h3>销售数据统计</h3>
      <div class="clear"></div>
    </div>
{/if $line/}
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="{/$root_dir/}/assets/jqplot/excanvas.min.js"></script><![endif]-->
<script type="text/javascript" src="{/$root_dir/}/assets/jqplot/jquery.jqplot.min.js"></script>
<script type="text/javascript" src="{/$root_dir/}/assets/jqplot/plugins/jqplot.highlighter.min.js"></script>
<script type="text/javascript" src="{/$root_dir/}/assets/jqplot/plugins/jqplot.cursor.min.js"></script>
<script type="text/javascript" src="{/$root_dir/}/assets/jqplot/plugins/jqplot.dateAxisRenderer.min.js"></script>
<link rel="stylesheet" type="text/css" href="{/$root_dir/}/assets/jqplot/jquery.jqplot.min.css" />
<script>
$(document).ready(function(){
  var line1=[{/$line/}];
  var plot1 = $.jqplot('chart1', [line1], {
      title:'{/$title/}',
      axes:{
        xaxis:{
          renderer:$.jqplot.DateAxisRenderer,
          tickOptions:{
            formatString:'%y-%m-%#d'
          }
        },
        yaxis:{
          tickOptions:{
            formatString:'￥%.2f'
            }
        }
      },
      highlighter: {
        show: true,
        sizeAdjust: 7.5
      },
      cursor: {
        show: false
      }
  });
});
</script>
{//if/}
    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
      	<div class="form">
            <form action="{/get_url rule='/statistics/index'/}" method="post" id="js-form">
                <fieldset class="clearfix">
               	  <p>时间：<input type="text"  name="start" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  class="text-input min-input" value="{/$start/}"/>--<input type="text"  name="end" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  class="text-input min-input" value="{/$end/}"/>&nbsp;<select name="type">
                	  <option value="1" {/if $type eq 1/}selected="selected"{//if/}>销售情况统计</option>
                      <option value="2" {/if $type eq 2/}selected="selected"{//if/}>退货统计</option>
                	  <option value="3" {/if $type eq 3/}selected="selected"{//if/}>销售利润统计</option>
               	  </select>&nbsp;<input type="submit" name="" class="button" id="button" value=" 提交 " /></p>
                </fieldset>
            </form>
        </div>
        {/if $null/}
        <div class="notification information png_bg">
			<div>{/$null/}</div>
		</div>
        {//if/}
        <div id="chart1" style="height:400px; width:100%;"></div>
      </div>
    </div>
  </div>
        </div></div>
  {/include file="smooth/common/copy.html"/} </div>
{/include file="smooth/common/footer.html"/}